
local num = 3

for i = 1, num * 2 do
  print("n " .. i)
end

for i = 1, num do
  if i ~= num  then
    print("e " .. i .. " " .. i + 1 .. " 1")
  end

  for j = num+1, num*2 do
    print("e " .. i .. " " .. j .. " " .. (num - i + 1) * 2)
  end
end
  
for i = 1, num do
  print("t " .. 1 .. " " .. num*2 .. " " .. num+2)
end
